From 80b1c25504e7d6ad41b4c052fc9b1fe01b1d3fd5 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Mon, 19 Dec 2005 23:01:30 +0000 Subject: [PATCH] Show diffs and pause only if "fc" returns with an error. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1662 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/mingw/mkwintesto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpsbabel/mingw/mkwintesto.c b/gpsbabel/mingw/mkwintesto.c index bfeb7a1c3..3b25829d4 100644 --- a/gpsbabel/mingw/mkwintesto.c +++ b/gpsbabel/mingw/mkwintesto.c @@ -151,8 +151,8 @@ int argc, f_outputLine(pfTestoOut, "FOR /f \"delims=\" %%a IN ('fc %PARAM1% %PARAM2%') DO IF \"x%%a\"==\"xFC: no differences encountered\" GOTO :EOF"); f_outputLine(pfTestoOut, "REM Show the first 5 lines of difference"); f_outputLine(pfTestoOut, "fc %1 /LB5 %PARAM1% %PARAM2%"); - f_outputLine(pfTestoOut, "ECHO %* are not the same (first 5 differences above) - pausing. ^C to quit if required"); - f_outputLine(pfTestoOut, "PAUSE"); + f_outputLine(pfTestoOut, "if errorlevel 1 ECHO %* are not the same (first 5 differences above) - pausing. ^C to quit if required"); + f_outputLine(pfTestoOut, "if errorlevel 1 PAUSE"); f_outputLine(pfTestoOut, "GOTO :EOF"); f_outputLine(pfTestoOut, ""); f_outputLine(pfTestoOut, "REM =================================="); -- 2.30.2